Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use mktempdir shim (until bugfix is complete) #504

Closed
wants to merge 2 commits into from

Conversation

00vareladavid
Copy link
Contributor

What if we use this until the LibGit stuff is sorted out? It should allow people to test changes on the CI without being bothered by the LibGit bug. Thankfully the only place (so far) that the bug manifests itself is when cleaning up temporary directories. I've tried my best not to inadvertently catch unrelated exceptions. Its kind of a hack, but its limited to test code and should only be temporary.

@KristofferC
Copy link
Member

The funny thing is that the Base version already does this... https://github.com/JuliaLang/julia/blob/master/base/file.jl#L581

@00vareladavid
Copy link
Contributor Author

I'm confused. The difference would be in the @error vs @warn, no?

@KristofferC
Copy link
Member

@error doesn't throw, it just prints a log message with the error heading.

@00vareladavid
Copy link
Contributor Author

That's wierd, here it looks like the exception is going right through mktempdir.

@KristofferC
Copy link
Member

Yeah, but see JuliaLang/julia#27982 (comment). It might be a different error but the stacktrace is just wrong... Not pleasant to debug.

@00vareladavid
Copy link
Contributor Author

Ok, thanks for explaining.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants